<?php
namespace app\common\model;

use think\Model;

class Admin extends Model
{
    public function getAdminByUsername($username){
        $ret = $this
            ->where('username',$username)
            ->find()->toArray();
        return $ret;
    }
}